﻿using CommandLine;
using CommandLine.Text;

namespace PackToKindle
{
    class CommandLineArguments
    {
        [Option("f", "fold", Required = true, HelpText = "Specifies the folder with books to send.")]
        public string Folder { get; set; }

        [Option("c", "convert", Required = false, DefaultValue = false, 
            HelpText= "Specifies should service convert files or not. If set to 'true' books will be send to Kindle only by e-mail.")]
        public bool Convert { get; set; }

        [Option("z", "zip", Required = false, DefaultValue = true,
            HelpText = "Specifies should be zipped before sending. Set to 'false' if your mail server doesn't allow to send zip archives.")]
        public bool Zip { get; set; }

        [HelpOption(HelpText = "Display the help screen.")]
        public string ShowHelp()
        {
            return HelpText.AutoBuild(this);//, (HelpText current) => HelpText.DefaultParsingErrorsHandler(this, current));
        }
    }
}
